home *** CD-ROM | disk | FTP | other *** search
/ PC User 2003 July / Disc 1 / PCU0703CD1.iso / software / online / files / easydemo.exe / %MAINDIR% / validateitem.xsl < prev   
Encoding:
Extensible Markup Language  |  2003-05-05  |  4.6 KB  |  134 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4. <xsl:output method="html"/>
  5. <xsl:template match="/">
  6.  
  7. <html>
  8. <head>
  9. <title>Validate Fees</title>
  10. </head>
  11. <body bgcolor="#ccffcc">
  12. <a href="http://www.ebay.com/api/index.html">
  13. <img>
  14.   <xsl:attribute name="src"><xsl:value-of select="//url"/>
  15.   <xsl:value-of select="@src" />
  16.   </xsl:attribute>       
  17. </img>
  18. </a>
  19. <br />
  20. <small>eBay and the eBay logo are
  21. trademarks of eBay Inc.</small>
  22. <h2><center>Validate Listing Fees</center></h2>
  23. <hr />
  24.  
  25. <xsl:choose>
  26.   <xsl:when test="//Errors/Error/SeverityCode = 1">
  27.     <center><h4>There were errors in your auction submission. Review the error message, fix and resubmit the auction</h4></center><br/><br/>
  28.     <center><h4>Error message is: </h4><h3><xsl:value-of select="//Errors/Error/LongMessage"/></h3></center><br />
  29.     </xsl:when>
  30.   <xsl:otherwise>
  31.     
  32.     <center>The following listing fees will be charged against this auction.</center>
  33.     <center>Press either the <b>VALIDATE/POST LISTING </b>button to submit the auction now or the <b>BULK LIST </b>button to list later.</center><br/>
  34.     
  35.     <b><center>Total Listing Fee $<xsl:value-of select="//Fees/ListingFee"/></center></b>
  36.     
  37.     <xsl:choose>
  38.                             <xsl:when test="//Fees/InsertionFee > 0">
  39.                                                 <li></li>Insertion Fee $<xsl:value-of select="//Fees/InsertionFee"/><br />
  40.                             </xsl:when>
  41.     </xsl:choose>
  42.     <xsl:choose>
  43.                             <xsl:when test="//Fees/AuctionLengthFee > 0">
  44.                                               <li></li>Auction Length Fee $<xsl:value-of select="//Fees/AuctionLengthFee"/><br />
  45.                             </xsl:when>
  46.   </xsl:choose>
  47.     <xsl:choose>
  48.                             <xsl:when test="//Fees/BoldFee > 0">
  49.                                               <li></li>Bold Fee $<xsl:value-of select="//Fees/BoldFee"/><br />
  50.                             </xsl:when>
  51.   </xsl:choose>                                                        
  52.     <xsl:choose>
  53.                             <xsl:when test="//Fees/BuyItNowFee > 0">
  54.                                               <li></li>Buy It Now Fee $<xsl:value-of select="//Fees/BuyItNowFee"/><br />
  55.                             </xsl:when>
  56.   </xsl:choose>
  57.     <xsl:choose>
  58.                             <xsl:when test="//Fees/FeaturedFee > 0">
  59.                                               <li></li>Featured Fee $<xsl:value-of select="//Fees/FeaturedFee"/><br />
  60.                             </xsl:when>
  61.   </xsl:choose>
  62.     <xsl:choose>
  63.                             <xsl:when test="//Fees/CategoryFeaturedFee > 0">
  64.                                               <li></li>Category Featured Fee $<xsl:value-of select="//Fees/CategoryFeaturedFee"/><br />
  65.                             </xsl:when>
  66.   </xsl:choose>
  67.     <xsl:choose>
  68.                             <xsl:when test="//Fees/GalleryFee > 0">
  69.                                               <li></li>Gallery Fee $<xsl:value-of select="//Fees/GalleryFee"/><br />
  70.                             </xsl:when>
  71.   </xsl:choose>
  72.     <xsl:choose>
  73.                             <xsl:when test="//Fees/FeaturedGalleryFee > 0">
  74.                                               <li></li>Featured Gallery Fee $<xsl:value-of select="//Fees/FeaturedGalleryFee"/><br />
  75.                             </xsl:when>
  76.   </xsl:choose>
  77.     <xsl:choose>
  78.                             <xsl:when test="//Fees/FixedPriceDurationFee > 0">
  79.                                               <li></li>Fixed Price Duration Fee $<xsl:value-of select="//Fees/FixedPriceDurationFee"/><br />
  80.                             </xsl:when>
  81.   </xsl:choose>
  82.     <xsl:choose>
  83.                             <xsl:when test="//Fees/GiftIconFee > 0">
  84.                                               <li></li>Gift Icon Fee $<xsl:value-of select="//Fees/GiftIconFee"/><br />
  85.                             </xsl:when>
  86.   </xsl:choose>
  87.     <xsl:choose>
  88.                             <xsl:when test="//Fees/PhotoDisplayFee > 0">
  89.                                               <li></li>Photo Display Fee $<xsl:value-of select="//Fees/PhotoDisplayFee"/><br />
  90.                             </xsl:when>
  91.   </xsl:choose>
  92.     <xsl:choose>
  93.                             <xsl:when test="//Fees/PhotoFee > 0">
  94.                                               <li></li>Photo Fee $<xsl:value-of select="//Fees/PhotoFee"/><br />
  95.                             </xsl:when>
  96.   </xsl:choose>
  97.     <xsl:choose>
  98.                             <xsl:when test="//Fees/HighLightFee > 0">
  99.                                               <li></li>Highlight Fee $<xsl:value-of select="//Fees/HighLightFee"/><br />
  100.                             </xsl:when>
  101.   </xsl:choose>
  102.     <xsl:choose>
  103.                             <xsl:when test="//Fees/ReserveFee > 0">
  104.                                               <li></li>Reserve Fee $<xsl:value-of select="//Fees/ReserveFee"/><br />
  105.                             </xsl:when>
  106.   </xsl:choose>
  107.     <xsl:choose>
  108.                             <xsl:when test="//Fees/SchedulingFee > 0">
  109.                                               <li></li>Scheduling Fee $<xsl:value-of select="//Fees/SchedulingFee"/><br />
  110.                             </xsl:when>
  111.   </xsl:choose>
  112.     <xsl:choose>
  113.                             <xsl:when test="//Fees/ThirtyDaysAucFee > 0">
  114.                                               <li></li>Thirty Days Auction Fee $<xsl:value-of select="//Fees/ThirtyDaysAucFee"/><br />
  115.                             </xsl:when>
  116.   </xsl:choose>
  117.  
  118.     
  119.     </xsl:otherwise>
  120. </xsl:choose>
  121.  
  122. <xsl:choose>
  123.   <xsl:when test="//Errors/Error/SeverityCode = 2">
  124.       <center><h5>Returned Warning Message Is: </h5><h4><xsl:value-of select="//Errors/Error/LongMessage"/></h4></center><br />
  125.   </xsl:when>
  126. </xsl:choose>
  127.   
  128.  
  129. </body>
  130. </html>
  131.  
  132. </xsl:template>
  133.  
  134. </xsl:stylesheet>